package com.suneast.suneaststore.bean.personal.address;

import android.os.Parcel;
import android.os.Parcelable;

public class AddressBean implements Parcelable {
    private int id;
    private int uniacid;
    private String openid;
    private int mid;
    private String realname;
    private String mobile;
    private String province;//省份名称
    private String city;//城市名称
    private String area;//区域/县域名称
    private String town;//街道/乡镇名称
    private String address;//街道地址
    private int isdefault;
    private String zipcode;
    private int deleted;
    private String street;
    private String streetdatavalue;
    private int datavalue;
    private int type;//地址类型 0:个人地址 1:提货地址
    private String storename;
    private int pid;//省份id
    private int cid;//城市id
    private int aid;//区域/县域id
    private int tid;//街道/乡镇id
    private int merchid;

    public AddressBean() {
        realname = "";
        mobile = "";
        province = "请选择";
        city = "请选择";
        area = "请选择";
        town = "请选择";
        address = "";
        zipcode = "";
        street = "";
        storename = "";
        pid = -1;
        cid = -1;
        aid = -1;
        tid = -1;
    }

    protected AddressBean(Parcel in) {
        id = in.readInt();
        uniacid = in.readInt();
        openid = in.readString();
        mid = in.readInt();
        realname = in.readString();
        mobile = in.readString();
        province = in.readString();
        city = in.readString();
        area = in.readString();
        town = in.readString();
        address = in.readString();
        isdefault = in.readInt();
        zipcode = in.readString();
        deleted = in.readInt();
        street = in.readString();
        streetdatavalue = in.readString();
        datavalue = in.readInt();
        type = in.readInt();
        storename = in.readString();
        pid = in.readInt();
        cid = in.readInt();
        aid = in.readInt();
        tid = in.readInt();
        merchid = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(uniacid);
        dest.writeString(openid);
        dest.writeInt(mid);
        dest.writeString(realname);
        dest.writeString(mobile);
        dest.writeString(province);
        dest.writeString(city);
        dest.writeString(area);
        dest.writeString(town);
        dest.writeString(address);
        dest.writeInt(isdefault);
        dest.writeString(zipcode);
        dest.writeInt(deleted);
        dest.writeString(street);
        dest.writeString(streetdatavalue);
        dest.writeInt(datavalue);
        dest.writeInt(type);
        dest.writeString(storename);
        dest.writeInt(pid);
        dest.writeInt(cid);
        dest.writeInt(aid);
        dest.writeInt(tid);
        dest.writeInt(merchid);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AddressBean> CREATOR = new Creator<AddressBean>() {
        @Override
        public AddressBean createFromParcel(Parcel in) {
            return new AddressBean(in);
        }

        @Override
        public AddressBean[] newArray(int size) {
            return new AddressBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUniacid() {
        return uniacid;
    }

    public void setUniacid(int uniacid) {
        this.uniacid = uniacid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(int isdefault) {
        this.isdefault = isdefault;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getStreetdatavalue() {
        return streetdatavalue;
    }

    public void setStreetdatavalue(String streetdatavalue) {
        this.streetdatavalue = streetdatavalue;
    }

    public int getDatavalue() {
        return datavalue;
    }

    public void setDatavalue(int datavalue) {
        this.datavalue = datavalue;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getStorename() {
        return storename;
    }

    public void setStorename(String storename) {
        this.storename = storename;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public int getMerchid() {
        return merchid;
    }

    public void setMerchid(int merchid) {
        this.merchid = merchid;
    }
}
